package org.orz.cloud.redis.autoconfigure;

import org.orz.cloud.redis.RedisUtil;
import org.orz.cloud.redis.persistence.mappers.SysRedisMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConditionalOnProperty(value = "orz.mock.redis.enabled", havingValue = "true")
public class RedisMockAutoConfiguration {

    @Autowired
    public RedisMockAutoConfiguration(SysRedisMapper sysRedisMapper){
        RedisUtil.hold(sysRedisMapper);
    }
}
